package hsfslow2fast;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author CBeann
 * @create 2020-01-30 18:41
 */
@ComponentScan("hsfslow2fast")
@EnableAspectJAutoProxy
public class App {

  public static void main(String[] args) throws Exception {

    long start = System.currentTimeMillis();
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(App.class);
    Hsfconsumer hsfconsumer = (Hsfconsumer) context.getBean("hsfconsumer");
    hsfconsumer.m1();

//    Student hsfconsumer = (Student) context.getBean("student");
//    hsfconsumer.m1();

    System.out.println("--OVER--");
    context.close();
    long end = System.currentTimeMillis();
    System.out.println(end - start);
  }
}
